﻿using System;
using SDF.Web.Models;
using System.Collections.Generic;

namespace SDF.Web
{
    public partial class exam : SDF.Web.UI.Page
    {
        public List<AuthRule> ModelList = new List<AuthRule>();
        public string Pager;

        protected void Page_Load(object sender, EventArgs e)
        {
            //分页
            int page = Input.Get("page", 1);
            int pagesize = 12;

            var rs = db.Page<AuthRule>(page, pagesize, "where id>0 order by id asc");
            this.ModelList = rs.Items;
            this.Pager = Html.Pager(rs, "?page=__id__");
        }
    }
}